package cn.linjianhui.api.client;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class RPCErrorInfo {

    public RPCErrorInfo()
    {
        this.Id = "";
        this.Message = "";
        this.StackTrace = "";
    }

    private String Id;

    private String Message;

    private String StackTrace;

    private String ExceptionType;

    public String toString()
    {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(String.format("错误Id：%s", this.Id));
        stringBuilder.append(String.format("\r\n错误信息：%s", this.Message));
        stringBuilder.append(String.format("\r\n错误堆栈：\r\n%s", this.StackTrace));
        return stringBuilder.toString();
    }
}
